extern 	int	RunTag;
extern 	time_t	CurrentTime;
extern 	int	NewHour, NewDay, NewMonth, NewYear;
extern  int     KwhNewDay;	//Ryuan 2003.01.18.
extern 	struct 	tm	*Cur_Tm;
extern  struct  timeb   Char_Tm;
extern 	int	HourKwhClearTag, DayKwhClearTag;
extern 	int	MonthKwhClearTag, YearKwhClearTag;
extern	int	ForecastTag;
extern  int	DayLimitClearTag, MonthLimitClearTag, YearLimitClearTag;
extern 	int	SysFacId;
extern 	int	SysTotalPCompId, SysTotalQCompId;
extern 	int	KwhComTag;
extern	int	RateComTag[MAX_RATE_NUM];
extern	int	MonthClearTag[MAX_RATE_NUM];
extern	int	YearClearTag[MAX_RATE_NUM];
extern	int	PlanComTag;
extern  int     HIGH1_START, HIGH1_END;
extern  int     HIGH2_START, HIGH2_END;
extern  int     LOW1_START, LOW1_END;
extern  int     LOW2_START, LOW2_END;
extern  int      LIMIT_FLAG;
extern  int      DayRateClearTag;
extern	struct	timeb Warn_Tm;
extern  int	WarnCount;
extern  int*	pWarnList;
extern int time_t_to_oracle_date_string(time_t osdate,char *result);

